<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var date = new Date();
        console.log(date.valueOf());
        console.log(date.getTime());
        var date1 = +new Date();
        console.log(date1);
        console.log(Date.now());
    </script>
</body>
</html>